<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> 
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%><%@taglib
	prefix="bs" uri="/bstag"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<base href="<%=basePath%>">
		<meta id="base" content="<%=basePath%>">
		<title>单位收费情况表</title>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="description" content="This is my page">
		<link rel="stylesheet" type="text/css"
			href="<%=basePath%>style/themes/default/easyui.css">
		<link rel="stylesheet" type="text/css"
			href="<%=basePath%>style/themes/icon.css">
		<script type="text/javascript"
			src="<%=basePath%>javascript/jquery-1.7.1.min.js">
</script>
		<script type="text/javascript"
			src="<%=basePath%>javascript/jquery.easyui.min.js">
</script>
		<script type="text/javascript" src="<%=basePath%>javascript/pub.js">
</script>
		<script type="text/javascript"
			src="<%=basePath%>pages/report/js/deptCharge.js">
</script>
		<script type="text/javascript"
			src="<%=basePath%>javascript/locale/easyui-lang-zh_CN.js">
</script>
		<script type="text/javascript"
			src="<%=basePath%>javascript/easyui_pub.js">
</script>
		<script type="text/javascript"
			src="<%=basePath%>javascript/fusioncharts/FusionCharts.js">
</script>
		<script type="text/javascript"
			src="<%=basePath%>javascript/flot/excanvas.min.js">
</script>
		<script type="text/javascript"
			src="<%=basePath%>javascript/flot/jquery.flot.js">
</script>
		<script type="text/javascript"
			src="<%=basePath%>javascript/flot/jquery.flot.pie.js">
</script>
		<script type="text/javascript"
			src="<%=basePath%>javascript/flot/jquery.flot.stack.js">
</script>
<style>
		body,html{
			padding:0;
			margin:0;
			height:100%;
		}  
		
		#layout{
			height: 100%;
			width:100%;
			border-top: none;
			border-bottom: none;
		}
		
		a:link,a:visited{color:#000;text-decoration:none;}
        a:hover,a:active{color:#9FB6CD;text-decoration:none;}
</style>	
<script type="text/javascript">
function killerrors() {
        return true;
}
window.onerror = killerrors;
</script> 		
	</head>
	<body>
		<div id="basePath" value="<%=basePath%>" style="disply:none;"></div>
		<c:set var="params" value="${__resultModle.outParams}"></c:set>
		<div id="outSide" class="easyui-layout" fit="true" id="layout" cellspacing="10">
		<div region="north" style="height:32px;width:100%;border:0px;background-image:   url(<%=basePath%>images/sav_bg.gif); background-repeat:   repeat;" fit="false" >
		<div style="display:none;visibility: false;width: 100%;height: 100%;" id="queryPnl">
		<span style="float:left;height: 28px;">
		    <table style="height: 28px;border: 0px;">
		    <tr>
		    <td>	
		    <a class="easyui-linkbutton" plain="true">单位:</a>
		    </td>
		    <td>	
		    <input id="queryDept" name="departID" editable="false"  style="width:155px;height: 18px;" panelHeight="200" />
		    </td>
		    <td>
		    <a class="easyui-linkbutton" plain="true">开始日期:</a>
		    </td>
		    <td>
		    <input class="easyui-datebox" id="dateStart" name="dateStart"  editable="true"  style="width:100px;height: 18px;" />
		    </td>
		    <td>
		    <a class="easyui-linkbutton" plain="true">结束日期:</a>
		    </td>
		    <td>
		    <input class="easyui-datebox" id="dateEnd" name="dateEnd"  editable="true"   style="width:100px;height: 18px;"/>
		    </td>
		    <td>
		    <a onclick="queryList()" class="easyui-linkbutton" iconCls="icon-go" plain="true">确定</a>
		    </td>
		    <td>
		    <a onclick="clearQry()" class="easyui-linkbutton" iconCls="icon-reSet" plain="true">重置</a>
		    </td>
		    </tr>	
		    </table>
		</span>
		<span style="float:right;height: 28px;" >  
	        <table style="height: 28px;border: 0px;">
		    <tr>
		    <td>	  
		    <a onclick="showQryPnl('hide')" class="easyui-linkbutton" iconCls="icon-down" plain="true" >收起 </a>
		    </td>
		    </tr>	
		    </table>
		</span>    
		</div>
		 <div style="width: 100%;" id="toolPnl">
		     <span style="float:left;" id="stepList">
		     <a id="mBack" iconCls="icon-back" onclick="back()">后退</a> 
		     </span> 		
		     <span style="float:right;" >			
		         <a onclick="showQryPnl('show')" class="easyui-linkbutton" iconCls="icon-search" plain="true" style="float:right;">查询</a>
		     </span> 
		 </div>    
	     </div>
	     <div id="center" region="center" title="" style="background:#fafafa;width:100%" onmouseover="showScroll()" onmouseout="hideScroll(event,this)">
			<table id="grid" class="easyui-datagrid"  showFooter="true">
			    <thead frozen="true" >
					<tr>
						<th field="DEPTNAME" width="139" formatter='formatFozen' align="left">
							
						</th>
					</tr>	
				</thead>
				<thead>		
				    <tr>
						<c:forEach items="${params.gridCols}" var="bean" varStatus="rsStatus">
							<th field="${bean.F_CODE}" id="${bean.F_CODE}" width="${(fn:length(bean.F_NAME)*12)+60}" align="right"
								formatter='formater' >
								<div class="tCol" id="m_${bean.F_CODE}" name="${bean.F_CODE}" isLeaf="${bean.F_ISLEAF}" style="display: block;padding:0px" onmouseover="showMenu('${bean.F_CODE}')">
								<c:choose>
								   <c:when test="${bean.F_ISLEAF==1}">
								       <span style="float: left;width: 70%;"><a style="color:#1C879A;text-align:left;">${bean.F_NAME}</a></span>
								   </c:when>
								   <c:otherwise>
								       <span style="float: left;width: 70%;"><a  href="javascript:void(0)" title='点击查看详细信息' style="color:#1C879A;text-align:left" class="col" name="${bean.F_CODE}">${bean.F_NAME}</a></span>
								   </c:otherwise>
								</c:choose>
                                <span style="float:right;margin-top: 8px;"><a id="${bean.F_CODE}" style="visibility: false;float:right;" href="javascript:void(0)" class="mb" onmouseover="onmonse('${bean.F_CODE}','${bean.F_NAME}','')"></a></span>								
							    </div>
							</th>
						</c:forEach>
					</tr>
				</thead>
			</table>
		</div>	
		</div>
		<div id="pie" class="easyui-window"
			style="padding: 5px; width: 600px; height: 500px;text-align:center;" title="图表" resizable="false"
			closed="true" closable="false" shadow="true" collapsible="false" minimizable="fasle" maximizable="false" draggable="false" modal="true">
		</div>	
		<input id="ChargeLevel" name="ChargeLevel" type="hidden"
			value="${params.chargeLevel}" />
		<input id="ChargeCode" name="ChargeCode" type="hidden"
			value="${params.chargeCode}" />			
		<input id="DeptLevel" name="DeptLevel" type="hidden"
			value="${params.deptLevel}" />
		<input id="DeptCode" name="DeptCode" type="hidden"
			value="${params.deptCode}" /> 				 	
        <input id="isReCols" name="isReCols" type="hidden"
			value="${params.isReCols}" />
		<input id="BgnDate"  type="hidden"
			value="${params.dateStart}" /> 
		<input id="EndDate" type="hidden"
			value="${params.dateEnd}" />
		<input id="stepIndex" type="hidden"
			value="${params.stepIndex}" /> 		 		 							
		<div id='mm' style="width:80px;visibility: false;display: none;">
		    <div iconCls="icon-pie" onclick="pieShow('pie')">饼图</div>  
            <div iconCls="icon-bar" onclick="pieShow('bar')">柱图</div>  
            <div iconCls="icon-line" onclick="pieShow('line')">曲线图</div>  
		</div>
		<div id="mHistory" style="width:400px;display:none;">
		    <div id="step_-1" onclick="toStep('-1')">首页</div>
		</div>		
	</body>
</html>